package cn.gson.fengboot.model.pojos;

import javax.persistence.*;
import java.util.Date;

@Entity
public class Lxsmbcb {
    private int xsbmcbId;//销售目标从表id
    private Double xsmbcbHuikuangje;//销售目标员工回款总额
    private Double xsmbcbQianyuesl;//销售目标员工签约总数
    private Date xsmbcbDate;//销售目标员工签约总数
    private QempFrom qempFrom;//员工对象
    private Lxsbm lxsbm;//主表对象

    @Id
    @Column(name = "xsbmcb_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getXsbmcbId() {
        return xsbmcbId;
    }

    public void setXsbmcbId(int xsbmcbId) {
        this.xsbmcbId = xsbmcbId;
    }


    @Basic
    @Column(name = "xsmbcb_date")
    public Date getXsmbcbDate() {
        return xsmbcbDate;
    }

    public void setXsmbcbDate(Date xsmbcbDate) {
        this.xsmbcbDate = xsmbcbDate;
    }

    @Basic
    @Column(name = "xsmbcb_huikuangje")
    public Double getXsmbcbHuikuangje() {
        return xsmbcbHuikuangje;
    }

    public void setXsmbcbHuikuangje(Double xsmbcbHuikuangje) {
        this.xsmbcbHuikuangje = xsmbcbHuikuangje;
    }

    @Basic
    @Column(name = "xsmbcb_qianyuesl")
    public Double getXsmbcbQianyuesl() {
        return xsmbcbQianyuesl;
    }

    public void setXsmbcbQianyuesl(Double xsmbcbQianyuesl) {
        this.xsmbcbQianyuesl = xsmbcbQianyuesl;
    }

    @ManyToOne
    @JoinColumn(name = "emp_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public QempFrom getQempFrom() {
        return qempFrom;
    }

    public void setQempFrom(QempFrom qempFrom) {
        this.qempFrom = qempFrom;
    }

    @ManyToOne
    @JoinColumn(name = "xsmb_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Lxsbm getLxsbm() {
        return lxsbm;
    }

    public void setLxsbm(Lxsbm lxsbm) {
        this.lxsbm = lxsbm;
    }
}
